import { checkPwd } from "@/utils/index";
export const PARAMS_USER = [
         {
           type: "input",
           field: "name",
           title: "姓名",
           value: "",
           props: { placeholder: "请输入姓名" }
         },
         {
           type: "input",
           field: "phone",
           title: "手机号",
           value: "",
           props: { placeholder: "请输入手机号", maxlength: 11 },
           validate: [
             {
               validator: (rule, val, d) => {
                 val &&
                 !/^1(3[0-9]|4[0-9]|5[0-9]|6[0-9]|7[0-9]|8[0-9]|9[0-9])\d{8}$/.test(
                   val
                 )
                   ? d(true)
                   : d();
               },
               message: "手机格式错误"
             }
           ]
         },
         {
           type: "cascader",
           field: "deptId",
           title: "所属部门",
           value: [],
           col: { span: 12 },
           props: {
             options: [],
             style: "width:100%",
             renderFormat: label => label.join(" / "),
             trigger: "click",
             clearable: true
           }
         },
         {
           type: "select",
           field: "statusFlag",
           title: "用户状态",
           value: "",
           options: [
             { value: "", label: "全部" },
             { value: "1", label: "启用" },
             { value: "0", label: "禁用" }
           ]
         },
         {
           type: "el-button",
           field: "search",
           props: {
             type: "primary",
             icon: "el-icon-search"
           },
           children: ["搜索"],
           emit: ["click"],
           emitPrefix: "btn-search"
         },
         {
           type: "el-button",
           field: "reset",
           props: {
             type: "primary",
             icon: "el-icon-setting"
           },
           children: ["重置"],
           emit: ["click"],
           emitPrefix: "btn-reset"
         },
         {
           type: "el-button",
           field: "add",
           props: {
             type: "danger",
             icon: "el-icon-plus",
             style: "display:block"
           },
           children: ["新增"],
           emit: ["click"],
           emitPrefix: "btn-add"
         },
         {
           type: "el-button",
           field: "upload",
           props: {
             type: "danger",
             icon: "el-icon-upload",
             style: "display:block"
           },
           children: ["导出用户"],
           emit: ["click"],
           emitPrefix: "btn-upload"
         },
         {
           type: "el-button",
           field: "delBatch",
           props: {
             type: "danger",
             icon: "el-icon-delete"
           },
           children: ["批量删除"],
           emit: ["click"],
           emitPrefix: "btn-del-batch"
         }
       ];

export let FORM_USER = [
         {
           type: "input",
           field: "account",
           title: "登录账号",
           value: "",
           col: { span: 12 },
           props: { type: "text", "auto-complete": "new-password" },
           validate: [
             { required: true, message: "请输入登录账号", trigger: "blur" }
           ]
         },
         {
           type: "input",
           field: "password",
           title: "登录密码",
           value: "",
           props: {
             type: "password",
             disabled: false,
             placeholder: "登录密码不少于8位，必须数字+字母+特殊字符组合",
             "auto-complete": "new-password"
           },
           col: { span: 12 },
           //autocomplete:"new-password",
           validate: [
             { required: true, message: "请输入密码", trigger: "blur" },
             {
               validator: (rule, val, d) => {
                 let size = checkPwd(val);
                 if (!size) {
                   d(true);
                 }
                 d();
                 // //空格
                 // var pwdblank = /^\S*$/;
                 // //非法字符
                 // var pattern = new RegExp(
                 //   "[`~!@#$^&*()=|{}':;',\\[\\].<>《》/?~！@#￥……&*（）——|{}【】‘；：”“'。，、？]"
                 // );
                 // var regUpper = /[A-Z]/;
                 // var regLower = /[a-z]/;
                 // var regStr = /[0-9]/;
                 // var complex = 0;
                 // if (regLower.test(val)) {
                 //   ++complex;
                 // }
                 // if (regUpper.test(val)) {
                 //   ++complex;
                 // }
                 // if (regStr.test(val)) {
                 //   ++complex;
                 // }
                 // if (!pwdblank.test(val)) {
                 //   d(true);
                 // } else if (pattern.test(val)) {
                 //   d(true);
                 // } else if (complex < 3 || val.length < 8) {
                 //   d(true);
                 // }
                 // d();
               },
               message: "登录密码不少于8位，必须数字+字母+特殊字符组合"
             }
           ]
         },
         {
           type: "input",
           field: "name",
           title: "真实姓名",
           value: "",
           col: { span: 12 },
           props: { type: "text" },
           validate: [
             { required: true, message: "请输入姓名", trigger: "blur" }
           ]
         },
         {
           type: "input",
           field: "phone",
           title: "手机号码",
           value: "",
           col: { span: 12 },
           props: { type: "text", maxlength: 11 },
           validate: [
             { required: true, message: "请输入手机号码", trigger: "blur" },
             {
               validator: (rule, val, d) => {
                 val &&
                 !/^1(3[0-9]|4[0-9]|5[0-9]|6[0-9]|7[0-9]|8[0-9]|9[0-9])\d{8}$/.test(
                   val
                 )
                   ? d(true)
                   : d();
               },
               message: "手机格式错误"
             }
           ]
         },
         {
           type: "input",
           field: "email",
           title: "电子邮件",
           value: "",
           col: { span: 12 },
           props: { type: "text" },
           validate: [
             { required: true, message: "请输入电子邮件", trigger: "blur" },
             {
               validator: (rule, val, d) => {
                 val &&
                 !/^[a-zA-Z0-9_-]+@([a-zA-Z0-9]+\.)+(com|cn|net|org)$/.test(val)
                   ? d(true)
                   : d();
               },
               message: "邮箱格式错误"
             }
           ]
         },
         {
           type: "select",
           field: "roleIds",
           title: "所属角色",
           value: "",
           options: [],
           col: { span: 12 },
           props: { style: "width:100%" },
           validate: [
             { required: true, message: "请选择所属角色", trigger: "change" }
           ]
         },
         {
           type: "select",
           field: "positionId",
           title: "所属职位",
           value: "",
           options: [],
           col: { span: 12 },
           props: { style: "width:100%" },
           validate: [
             { required: true, message: "请选择所属职位", trigger: "change" }
           ]
         },
         /*   {
      type: "cascader",
      field: "deptId",
      title: "所属部门",
      value: [],
      col: { span: 12 },
      props: {
        props:{ checkStrictly: true },
        clearable:true,
        options: [],
        style:"width:100%",
        renderFormat: label => label.join(" / "),
        trigger: "click"
      },
      validate: [
        { required: true, message: "请选择所属部门", trigger: "change" }
      ]
    }, */
         {
           type: "radio",
           field: "statusFlag",
           title: "状态",
           value: "",
           options: [
             { value: "1", label: "启用" },
             { value: "0", label: "禁用" }
           ],
           col: { span: 12 },
           props: { style: "width:100%" },
           validate: [
             { required: true, message: "请选择状态", trigger: "change" }
           ]
         }
       ];

export let PARAMS_SUPPLIER_USER = [
         {
           type: "input",
           field: "name",
           title: "姓名",
           value: "",
           props: { placeholder: "请输入姓名" }
         },
         {
           type: "input",
           field: "phone",
           title: "手机号",
           value: "",
           props: { placeholder: "请输入手机号", maxlength: 11 },
           validate: [
             {
               validator: (rule, val, d) => {
                 val &&
                 !/^1(3[0-9]|4[0-9]|5[0-9]|6[0-9]|7[0-9]|8[0-9]|9[0-9])\d{8}$/.test(
                   val
                 )
                   ? d(true)
                   : d();
               },
               message: "手机格式错误"
             }
           ]
         },
         {
           type: "select",
           field: "statusFlag",
           title: "用户状态",
           value: "",
           options: [
             { value: "", label: "全部" },
             { value: "1", label: "启用" },
             { value: "0", label: "禁用" }
           ]
         },
         {
           type: "el-button",
           field: "search",
           props: {
             type: "primary",
             icon: "el-icon-search"
           },
           children: ["搜索"],
           emit: ["click"],
           emitPrefix: "btn-search"
         },
         {
           type: "el-button",
           field: "reset",
           props: {
             type: "primary",
             icon: "el-icon-setting"
           },
           children: ["重置"],
           emit: ["click"],
           emitPrefix: "btn-reset"
         },
         {
           type: "el-button",
           field: "upload",
           props: {
             type: "danger",
             icon: "el-icon-upload",
             style: "display:block"
           },
           children: ["导出供应商"],
           emit: ["click"],
           emitPrefix: "btn-upload"
         },
         {
           type: "el-button",
           field: "delBatch",
           props: {
             type: "danger",
             icon: "el-icon-delete"
           },
           children: ["批量删除"],
           emit: ["click"],
           emitPrefix: "btn-del-batch"
         },
         {
           type: "el-button",
           field: "moverBatch",
           props: {
             type: "danger",
             icon: "el-icon-delete"
           },
           children: ["批量移入黑名单"],
           emit: ["click"],
           emitPrefix: "btn-mover-batch"
         }
       ];

export const USER_LABEL = [
         {
           label: "创建时间",
           prop: "createTime",
           width: "150",
           type: "createTime"
         },
         { label: "", prop: "", width: "40", type: "checkbox" },
         { label: "登录账户", prop: "account", width: "80", type: "normal" },
         { label: "真实姓名", prop: "name", width: "80", type: "normal" },
         {
           label: "所属角色",
           prop: "roleNames",
           width: "80",
           type: "roleNames"
         },
         { label: "所属部门", prop: "deptName", width: "80", type: "normal" },
         {
           label: "所属职位",
           prop: "positionName",
           width: "80",
           type: "normal"
         },
         {
           label: "账号状态",
           prop: "statusFlag",
           width: "80",
           type: "statusFlag"
         },
         {
           label: "创建人",
           prop: "createUserName",
           width: "80",
           type: "normal"
         },
         {
           label: "更新时间",
           prop: "updateTime",
           width: "150",
           type: "updateTime"
         }
       ];

export const USER_SUPPLIER_LABEL = [
         {
           label: "创建时间",
           prop: "createTime",
           width: "150",
           type: "createTime"
         },
         { label: "", prop: "", width: "40", type: "checkbox" },
         { label: "登录账户", prop: "account", type: "normal" },
         { label: "公司名称", prop: "supplierName", type: "normal" },
         { label: "联系人", prop: "name", width: "80", type: "normal" },
         { label: "手机号", prop: "phone", type: "normal" },
         { label: "邮箱", prop: "email", type: "normal" },
         {
           label: "账号状态",
           prop: "statusFlag",
           width: "80",
           type: "statusFlag"
         }
       ];

/*----------------------------------------------------------------------角色- */

export const PARAMS_ROLE = [
         {
           type: "input",
           field: "name",
           title: "角色名称",
           value: ""
         },
         {
           type: "el-button",
           field: "search",
           props: {
             type: "primary",
             icon: "el-icon-search"
           },
           children: ["搜索"],
           emit: ["click"],
           emitPrefix: "btn-search"
         },
         {
           type: "el-button",
           field: "reset",
           props: {
             type: "primary",
             icon: "el-icon-setting"
           },
           children: ["重置"],
           emit: ["click"],
           emitPrefix: "btn-reset"
         },
         {
           type: "el-button",
           field: "roleAdd",
           props: {
             type: "danger",
             icon: "el-icon-plus",
             style: "display:block"
           },
           children: ["新增"],
           emit: ["click"],
           emitPrefix: "btn-add"
         }
       ];

export const FORM_ROLE = [
         {
           type: "radio",
           field: "statusFlag",
           title: "启用状态",
           value: "1",
           options: [
             { value: "1", label: "启用" },
             { value: "0", label: "冻结" }
           ],
           props: { style: "width:100%" },
           validate: [
             { required: true, message: "请选择启用状态", trigger: "change" }
           ]
         },
         {
           type: "input",
           field: "name",
           title: "角色名称",
           value: "",
           validate: [
             { required: true, message: "请输入角色名称", trigger: "blur" }
           ]
         },
         {
           type: "input",
           field: "description",
           title: "备注",
           value: "",
           props: { type: "textarea" }
         }
       ];

export const ROLE_LABEL = [
         {
           label: "创建时间",
           prop: "createTime",
           width: "160",
           type: "createTime"
         },
         { label: "角色名称", prop: "name", width: "160", type: "normal" },
         {
           label: "状态",
           prop: "statusFlag",
           width: "100",
           type: "statusFlag"
         },
         { label: "备注", prop: "description", width: "160", type: "normal" },
         {
           label: "创建人",
           prop: "createUserName",
           width: "160",
           type: "normal"
         },
         {
           label: "更新时间",
           prop: "updateTime",
           width: "160",
           type: "updateTime"
         }
       ];

/**------------------------------------------------------------权限 */
export const PARAMS_PERMISSION = [
         {
           type: "input",
           field: "name",
           title: "权限名称",
           value: ""
         },
         {
           type: "el-button",
           field: "search",
           props: {
             type: "primary",
             icon: "el-icon-search"
           },
           children: ["搜索"],
           emit: ["click"],
           emitPrefix: "btn-search"
         },
         {
           type: "el-button",
           field: "reset",
           props: {
             type: "primary",
             icon: "el-icon-setting"
           },
           children: ["重置"],
           emit: ["click"],
           emitPrefix: "btn-reset"
         },
         {
           type: "el-button",
           field: "permissionAdd",
           props: {
             type: "danger",
             icon: "el-icon-plus",
             style: "display:block"
           },
           children: ["新增"],
           emit: ["click"],
           emitPrefix: "btn-add"
         }
       ];

export const FORM_PERMISSION = [
         {
           type: "input",
           field: "name",
           title: "名称",
           value: "",
           col: { span: 12 },
           validate: [
             { required: true, message: "请输入权限名称", trigger: "blur" }
           ]
         },
         {
           type: "input",
           field: "code",
           title: "编码",
           value: "",
           col: { span: 12 },
           validate: [
             { required: true, message: "请输入权限编码", trigger: "blur" }
           ]
         },
         {
           type: "input",
           field: "url",
           title: "url",
           value: "",
           col: { span: 12 },
           validate: [
             { required: true, message: "请输入权限url", trigger: "blur" }
           ]
         },
         {
           type: "radio",
           field: "menuFlag",
           title: "类型",
           value: "",
           options: [
             { value: "1", label: "菜单" },
             { value: "0", label: "按钮" }
           ],
           props: { style: "width:100%" },
           col: { span: 12 },
           validate: [
             { required: true, message: "请选择权限类型", trigger: "change" }
           ]
         },
         {
           type: "input",
           field: "description",
           title: "备注",
           value: "",
           col: { span: 24 },
           props: { type: "textarea" }
         }
       ];

export const PERMISSION_LABEL = [
         {
           label: "创建时间",
           prop: "createTime",
           width: "150",
           type: "createTime"
         },
         { label: "名称", prop: "name", width: "100", type: "normal" },
         { label: "编码", prop: "code", width: "140", type: "normal" },
         { label: "类型", prop: "menuFlag", width: "80", type: "menuFlag" },
         { label: "状态", prop: "statusFlag", width: "80", type: "statusFlag" },
         { label: "备注", prop: "description", width: "150", type: "normal" },
         {
           label: "创建人",
           prop: "createUserName",
           width: "120",
           type: "normal"
         },
         {
           label: "更新时间",
           prop: "updateTime",
           width: "150",
           type: "updateTime"
         }
       ];

/*---------------------------------------------------------------------------------------节点设置 */

export const PARAMS_NODE = [
         {
           type: "select",
           field: "name",
           title: "工作流名称",
           value: "",
           props: { placeholder: "请输入工作流名称" }
         },
         {
           type: "el-button",
           field: "search",
           props: {
             type: "primary",
             icon: "el-icon-search"
           },
           children: ["搜索"],
           emit: ["click"],
           emitPrefix: "btn-search"
         }
       ];

export const NODE_FORM = [
         {
           type: "input",
           field: "name",
           title: "工作流名称",
           value: "",
           col: { span: 12 },
           props: { placeholder: "请输入工作流名称" },
           validate: [
             { required: true, message: "请输入工作流名称", trigger: "blur" }
           ]
         },
         {
           type: "input",
           field: "remarks",
           title: "工作流描述",
           value: "",
           col: { span: 24 },
           props: { type: "textarea", placeholder: "请输入工作流描述" }
         }
       ];

export const NODE_LABEL = [
         //  {
         //    label: "创建时间",
         //    prop: "createTime",
         //    width: "160",
         //    type: "createTime"
         //  },
         {
           label: "创建时间",
           prop: "updateTime",
           width: "160",
           type: "updateTime"
         },
         { label: "工作流名称", prop: "name", width: "160", type: "normal" },
         { label: "工作流描述", prop: "remarks", width: "160", type: "normal" },
         {
           label: "创建人",
           prop: "createUserName",
           width: "160",
           type: "normal"
         }
       ];

export const nodeSetData = [
  { p1: "待申请", p2: "申请任务，未审核之前可以终止！", p3: "是", p4: "否" },
  {
    p1: "待初审",
    p2: "主管审核通过和拒绝！拒绝后发起人重新提交！",
    p3: "否",
    p4: "否"
  },
  {
    p1: "待中审",
    p2: "副总审核通过和拒绝！返回主管重新审核！",
    p3: "否",
    p4: "否"
  },
  {
    p1: "待终审",
    p2: "总经理审核通过和拒绝！拒绝后副总重新提交！",
    p3: "否",
    p4: "否"
  },
  { p1: "已成功", p2: "进入下一个流程！", p3: "否", p4: "是" },
  { p1: "已终止", p2: "整个流转已结束，不能再次发起！", p3: "否", p4: "是" }
];
export const nodeSetData2 = [
  { p0: "【待申请】可流转到", p1: true, p2: 7, p3: 7, p4: 7, p5: 7, p6: 7 },
  { p0: "【待初审】可流转到", p1: 7, p2: true, p3: 7, p4: 7, p5: 7, p6: 7 },
  { p0: "【待中审】可流转到", p1: 7, p2: 7, p3: true, p4: 7, p5: 7, p6: 7 },
  { p0: "【待终审】可流转到", p1: 7, p2: 7, p3: 7, p4: true, p5: 7, p6: 7 },
  { p0: "【已成功】可流转到", p1: 7, p2: 7, p3: 7, p4: 7, p5: true, p6: 7 },
  { p0: "【已终止】可流转到", p1: 7, p2: 7, p3: 7, p4: 7, p5: 7, p6: true }
];
export const NODE_SET_LABEL = [
  { label: "状态名称", prop: "name" },
  { label: "状态说明", prop: "stepName" },
  { label: "起始状态", prop: "startFlag" },
  { label: "结束状态", prop: "endFlag" }
];
export const NODE_SET_LABEL2 = [
  { label: "", prop: "p0" },
  { label: "待申请", prop: "p1" },
  { label: "待初审", prop: "p2" },
  { label: "待中审", prop: "p3" },
  { label: "待终审", prop: "p4" },
  { label: "已成功", prop: "p5" },
  { label: "已终止", prop: "p6" }
];
export const NODE_USER_LABEL = [
         { label: "用户名称", prop: "p1" },
         { label: "关联角色", prop: "p2" }
       ];

/* ---------------------------------------------------------------------------------部门管理 */
export const DEPARTMENT_FORM = [
         {
           type: "input",
           field: "name",
           title: "部门名称",
           value: "",
           col: { span: 12 },
           props: { type: "text", placeholder: "请输入部门名称" },
           validate: [
             { required: true, message: "请输入部门名称", trigger: "blur" }
           ]
         },
         {
           type: "input",
           field: "unitName",
           title: "单位名称",
           value: "",
           col: { span: 12 },
           props: { type: "text", placeholder: "请输入单位名称" }
           // validate: [{ required: true, message: "请输入单位名称", trigger: "blur" }]
         },
         {
           type: "input",
           field: "unitPhone",
           title: "单位电话",
           value: "",
           col: { span: 12 },
           props: { type: "text", placeholder: "请输入单位电话" },
           validate: [
             // { required: true, message: "请输入单位电话", trigger: "blur" },
             {
               validator: (rule, val, d) => {
                 val && !/^[0-9]*$/.test(val) ? d(true) : d();
               },
               message: "单位电话为纯数字"
             }
           ]
         },
         {
           type: "input",
           field: "concatPhone",
           title: "联系电话",
           value: "",
           col: { span: 12 },
           props: { type: "text", placeholder: "请输入联系电话" },
           validate: [
             // { required: true, message: "请输入联系电话", trigger: "blur" },
             {
               validator: (rule, val, d) => {
                 val && !/^[0-9]*$/.test(val) ? d(true) : d();
               },
               message: "联系电话为纯数字"
             }
           ]
         },
         {
           type: "input",
           field: "email",
           title: "单位邮箱",
           value: "",
           col: { span: 12 },
           props: { type: "text", placeholder: "请输入单位邮箱" },
           validate: [
             // { required: true, message: "请输入单位邮箱", trigger: "blur" },
             {
               validator: (rule, val, d) => {
                 val &&
                 !/^[a-zA-Z0-9_-]+@([a-zA-Z0-9]+\.)+(com|cn|net|org)$/.test(val)
                   ? d(true)
                   : d();
               },
               message: "邮箱格式错误"
             }
           ]
         },
         {
           type: "input",
           field: "address",
           title: "公司地址",
           value: "",
           col: { span: 12 },
           props: { type: "text", placeholder: "请输入公司地址" }
           //  validate: [{ required: true, message: "请输入公司地址", trigger: "blur" }]
         },
         {
           type: "input",
           field: "remarks",
           title: "备注",
           value: "",
           props: { type: "textarea", placeholder: "请输入备注" }
         }
       ];

export const DEPARTMENT_LABEL = [
         {
           label: "创建时间",
           prop: "createTime",
           width: "140",
           type: "createTime"
         },
         { label: "部门名称", prop: "name", width: "120", type: "normal" },
         {
           label: "联系电话",
           prop: "concatPhone",
           width: "120",
           type: "normal"
         },
         { label: "单位名称", prop: "unitName", width: "120", type: "normal" },
         { label: "单位电话", prop: "unitPhone", width: "120", type: "normal" },
         { label: "公司地址", prop: "address", width: "120", type: "normal" },
         { label: "备注", prop: "remarks", width: "200", type: "normal" },
         {
           label: "创建人",
           prop: "createUserName",
           width: "100",
           type: "normal"
         },
         {
           label: "更新时间",
           prop: "updateTime",
           width: "140",
           type: "updateTime"
         }
       ];

/* ----------------------------------------------------------------------------------------------职位管理 */
export const PARAMS_POSITION = [
         {
           type: "input",
           field: "name",
           title: "职位名称",
           value: "",
           props: { placeholder: "请输入职位名称" }
         },
         {
           type: "el-button",
           field: "search",
           props: {
             type: "primary",
             icon: "el-icon-search"
           },
           children: ["搜索"],
           emit: ["click"],
           emitPrefix: "btn-search"
         },
         {
           type: "el-button",
           field: "reset",
           props: {
             type: "primary",
             icon: "el-icon-setting"
           },
           children: ["重置"],
           emit: ["click"],
           emitPrefix: "btn-reset"
         },
         {
           type: "el-button",
           field: "permissionAdd",
           props: {
             type: "danger",
             icon: "el-icon-plus",
             style: "display:block"
           },
           children: ["新增"],
           emit: ["click"],
           emitPrefix: "btn-add"
         }
       ];

export const POSITION_FORM = [
         {
           type: "input",
           field: "name",
           title: "职位名称",
           value: "",
           props: { type: "text", placeholder: "请输入职位名称" },
           validate: [
             { required: true, message: "请输入职位名称", trigger: "blur" }
           ]
         },
         {
           type: "input",
           field: "remarks",
           title: "备注",
           value: "",
           props: { type: "textarea", placeholder: "请输入备注" }
         }
       ];

export const POSITION_LABEL = [
         {
           label: "创建时间",
           prop: "createTime",
           width: "140",
           type: "createTime"
         },
         { label: "职位名称", prop: "name", width: "120", type: "normal" },
         {
           label: "创建人",
           prop: "createUserName",
           width: "100",
           type: "normal"
         },
         { label: "备注", prop: "remarks", width: "200", type: "normal" },
         {
           label: "更新时间",
           prop: "updateTime",
           width: "140",
           type: "updateTime"
         }
       ];

/**-----------------------------------------------------------------------------------------------------数据日志 */
export const PARAMS_DATALOG = [
         {
           type: "input",
           field: "name",
           title: "登录账号",
           value: "",
           props: { placeholder: "请输入登录账号" }
         },
         {
           type: "DatePicker",
           field: "time",
           title: "时间",
           value: "",
           props: {
             type: "daterange",
             format: "yyyy-MM-dd",
             "start-placeholder": "开始日期",
             "end-placeholder": "结束日期"
           }
         },
         {
           type: "el-button",
           field: "search",
           props: {
             type: "primary",
             icon: "el-icon-search"
           },
           children: ["搜索"],
           emit: ["click"],
           emitPrefix: "btn-search"
         },
         {
           type: "el-button",
           field: "reset",
           props: {
             type: "primary",
             icon: "el-icon-setting"
           },
           children: ["重置"],
           emit: ["click"],
           emitPrefix: "btn-reset"
         }
       ];
export const DATA_LOG_LABEL = [
         {
           label: "创建时间",
           prop: "createTime",
           width: "140",
           type: "createTime"
         },
         { label: "操作账号", prop: "name", width: "140", type: "normal" },
         { label: "IP", prop: "ip", width: "140", type: "normal" },
         { label: "异常原因", prop: "content", width: "140", type: "normal" }
       ];

/*---------------------------------------------------------------------------------------------------------------------操作日志  */
export const PARAMS_OPERATIONLOG = [
         {
           type: "input",
           field: "name",
           title: "登录账号",
           value: "",
           props: { placeholder: "请输入登录账号" }
         },
         {
           type: "DatePicker",
           field: "time",
           title: "登录时间",
           value: "",
           props: {
             type: "daterange",
             format: "yyyy-MM-dd",
             "start-placeholder": "开始日期",
             "end-placeholder": "结束日期"
           }
         },
         {
           type: "el-button",
           field: "search",
           props: {
             type: "primary",
             icon: "el-icon-search"
           },
           children: ["搜索"],
           emit: ["click"],
           emitPrefix: "btn-search"
         },
         {
           type: "el-button",
           field: "reset",
           props: {
             type: "primary",
             icon: "el-icon-setting"
           },
           children: ["重置"],
           emit: ["click"],
           emitPrefix: "btn-reset"
         }
       ];
export const OPERATION_LOG_LABEL = [
         {
           label: "登陆时间",
           prop: "loginTime",
           width: "140",
           type: "createTime"
         },
         { label: "登录账号", prop: "userName", width: "140", type: "normal" },
         { label: "真实姓名", prop: "name", width: "140", type: "normal" },
         { label: "登陆IP", prop: "ip", width: "140", type: "normal" }
       ];

export const OPTION_INLINE = {
         form: { labelWidth: "", inline: true, size: "small" },
         resetBtn: false,
         submitBtn: false
       };
export const OPTION_BLOCK = {
         form: { labelWidth: "", size: "small" },
         row: { gutter: 20 },
         resetBtn: false,
         submitBtn: false
       };
